<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ page import="teamCservlets.ApplicationBean,teamCservlets.PersonBean" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Team C Defect System</title>
</head>
<%-- The "user" attribute, from the session, identifies the currently 
logged-in user, if any.  If the user's ID is -1, that indicates the
object isn't a valid user. --%>

<%-- TODO - Get the defect ID, and possibly defect summary, from the request.
Display this info on the page.  The defect ID must be available to the servlet when 
the user clicks Close, so options are to include it in the form via a hidden field (?) 
or put into the session as "defectToClose" (?). Need to decide on an approach
and update servlets accordingly.  --%>

<body BGCOLOR="#FDF5E6">
	<H1 ALIGN="CENTER">Team C Defect System</H1>
	<p style="font-size:150%">Close Defect</p>
	<form action="defectactions">
	<table>
	<tr>
	<td>Defect ID:</td><td>
		<%=
			request.getAttribute("defectid")
		%>
	</td>
	</tr>
	<tr>
	<td>Summary:</td><td><label id="summary">
		<%=
			request.getAttribute("summary")
		%></label>
	</td>
	</tr>
	<tr>
	<td>Resolution Date:</td><td><label id="resolutiondate">
		<%=
			request.getAttribute("resolutiondate")
		%></label>
	</td>
	</tr>
	<tr>
	<td>Resolution Note:<i style="color:red"> *</i></td>
	</tr>
	<tr>
	<td colspan="2" style="width:80"><textarea NAME="txtResolutionNote" rows=10 cols=50 ></textarea></td>
	</tr>
	<tr>
		<td colspan="2" align="left">
		<input type="submit" name="btnStoreClosedDefect" value="Close Defect">
		<input type="submit" name="btnGoToHomepage" value="Cancel">
	</tr>
	<tr><td>
		<%=
			request.getAttribute("resolvemessage")
		%>
		</td></tr>
	</table>
	
	<p><i style="color:red">*</i> Required fields </p>
	</form>
</body>
</html>